﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Zj.SchoolManage.Domain.Core
{
    /// <summary>
    /// 教师
    /// </summary>
    public class Teacher
    {
        public Teacher()
        {
            this.Courses = new HashSet<Course>();
        }
        [Key]
        public int Id { get; set; }

        public string Name { get; set; }

        public virtual ICollection<Course> Courses { get; set; }
    }
}
